@extends('Admin.layout.layout')
@section('title','门户管理')
@section('home','板块管理')
@section('weizhi','添加')
@section('con')
<div class="panel-body">
  <div class="form">
      <form class="form-validate form-horizontal " id="register_form" method="post" action="{{url('/admin/portaltype/insert')}}" novalidate="novalidate">
          <label for="password" class="control-label col-lg-2"><font><font>父版块</font></font></label>
          <select class="form-control m-bot15" style="width: 275px;" name="pid">
              <option value="0"><font><font>默认顶级</font></font></option>

              @foreach($types as $k=>$v)
              <option value="{{$v->id}}"><font><font>{{$v->name}}</font></font></option>
              @endforeach
              <!-- <option value="2"><font><font>管理员</font></font></option> -->
          </select>
          <span></span>
          <div class="form-group ">
              <label for="password" class="control-label col-lg-2"><font><font>新增板块</font></font></label>
              <div class="col-lg-10" style="width:300px">
                  <input class="form-control " id="password" name="name" type="text"><span style="color:red;font-size: 12px;">{{session('error')}}</span>
                  
              </div>
          </div>
         <!--  <div class="form-group ">
              <label for="confirm_password" class="control-label col-lg-2"><font><font>确认密码</font></font><span class="required"><font><font>*</font></font></span></label>
              <div class="col-lg-10" style="width:300px">
                  <input class="form-control " id="confirm_password" name="repassword" type="password" readme="请输入6-18位数字字母下划线">
                  <span></span>
              </div>
          </div> -->
          {{csrf_field()}}
          <div class="form-group">
              <div class="col-lg-offset-2 col-lg-10">
                  <button class="btn btn-primary" type="submit"><font><font>提交</font></font></button>
                  <button class="btn btn-default" type="reset"><font><font>取消</font></font></button>
              </div>
          </div>
      </form>
  </div>
</div>



@endsection
